#ifndef KEY_H
#define KEY_H
#define BLINK_GPIO  12 
#define GPIO_OUTPUT_PIN_SEL  (1ULL<<BLINK_GPIO)
#define center_key  8     //下按键作为确认按键()
#define up_key    13    //上按键作为选择按键
#define right_key   9   //左按键作为返回键
#define GPIO_INPUT_PIN_SEL  ((1ULL<<center_key)||(1ULL<<up_key)||(1ULL<<right_key)) 
#define ESP_INTR_FLAG_DEFAULT 0
void key_init();
uint8_t KEY_Scan(uint8_t mode);

#endif